package com.gdzl_hadoop.service;


import com.gdzl_hadoop.common.ServerResponse;
import com.gdzl_hadoop.pojo.ForestRandom;

import java.io.InputStream;
import java.util.*;

/**
 * Created by 1032019725 on 2017/10/18.
 */
public interface IDataHandleService {

    int InsertFPGData(InputStream is, String guid);

    int InsertFPGData(String res, String guid);

    ServerResponse<String[][]> getYsData(String YS1, String YS2, String guid);

    ServerResponse<List<String>> getYs2List(String YS1, String guid);

    ServerResponse<List<String>> getYs1List(String guid);


    ServerResponse<String[][]> getHlxfxResult(String YS_name, String guid);

    int InsertHlxfxData(String com_result, String guid);

    ServerResponse<HashMap<String, String>> getHlxfxYsList(String guid);


    int InsertRandomForestData(String res, String guid);

    ServerResponse<ForestRandom> getRFData(String guid);

    ServerResponse<List<Object>> getAllXqz();

    int insertFileRecord(String fileName, String filepath, String xzqdm, String year);

    ServerResponse<Map<String, List<Object>>> getGeodata();

    ServerResponse<Map<String, List<Object>>> getGeodataByXzqdm(String xzqdm);

    int checkFileExist(String xzqdm, String originalFilename);

    String dowloadFile(String xzqdm);

    Map<String, List<String>> getFpgRule(double confidenceNum, String result, String year, String xzqdm);
}
